/*
  Name: Records.h
  Copyright: 
  Author: Hank Stalica
  Date: 29/12/09 03:10
  Description: A class which stores Records, and provides the rest of the 
    program access to these records.
*/

#ifndef RECORDS_H
#define RECORDS_H

#include <string>
using std::string;

#include <vector>
using std::vector;

#include "consts.h"
#include "Record.h"

class Records{
  vector<Record> records;

  int store(Record); //stores a record in the record vector.
    
public:
  Records();    
  int store(string, string, string, string, string, string, string, string,
    string);  
  int retrieve(Record&, string); //retrieves a specific record.
  string retrieveAll(); //retrieves all records as a string.
  int save(); //saves the records to disk.
  int load(); //loads the records from disk.
  int size() { return records.size(); } //returns number of records stored.
};
#endif
